Array.prototype.map=function(f){
  var returnArray=[];
  for(i=0; i<this.length; i++)returnArray.push(f(this[i]));
  return returnArray;
}